package com.example.srm.domain.vo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author pfk
 * @creatTime 2021/11/24 16:32
 * @describe    返回域对象
 */
@Component
@Data
@Accessors(chain = true)
public class Result {
    /**
     * 状态码
     */
    private Integer  code ;
    /**
     * 消息
     */
    private String  msg = "请求成功";
    /**
     * 返回体数据
     */
    private Object data = null;

    private List errors;

    private boolean success = false;

}
